package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.soms.dto.MemberChannelDto;
import com.dingreading.cloud.soms.entity.MemberChannel;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface MemberChannelService extends IService<MemberChannel> {

    Page<MemberChannelDto> pageList(PageUtil pageUtil, String corpUid, String storeUid, String keyword, Integer enabled, String queryStaffUid);

    MemberChannelDto getByStoreUidAndUid(String uid);

    MemberChannel getInfo(String uid);

    boolean haveName(String storeUid, String uid, String name);

    int dropBean(String storeUid, String uid);

    boolean updateEnabled(String storeUid, String uid, Integer enabled, String staffUid, String staffName);

    boolean updateMiniUrl(String storeUid, String uid, String imgUrl, String staffUid, String staffName);

    boolean haveProductUid(String storeUid, String productUid);

    boolean haveChannelUid(String storeUid, String channelUid);

    List<MemberChannelDto> listByEnabled(String storeUid);

    MemberChannel getByUid(String channelUid);

}
